<?php echo $this->element('displayHeader'); ?>
<div class="toolbar">
    <div id="tLeft">
        <?php echo $this->element('toolbar', array('buttons' => array('back'))); ?>
    </div>
    <div id="tRight"><?php echo $this->element('neighbors', array('model' => 'UserSupplier', 'title' => 'id')); ?></div>
</div>
<fieldset>
    <legend>User Information</legend>
    <table>
        <tbody>
            <tr>
                <td width="150px"><?php echo $form->label("User.username", "Username") ?></td>
                <td><span><?php echo $this->data['User']['username'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label("User.name", "Name") ?></td>
                <td><span><?php echo $this->data['User']['name'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label("User.surname", "Surname") ?></td>
                <td><span><?php echo $this->data['User']['surname'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label("User.email", 'Email') ?></td>
                <td><span><?php echo $this->data['User']['email'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label("User.tel", 'Telephone') ?></td>
                <td><span><?php echo $this->data['User']['tel'] ?></span></td>
            </tr>
            <tr>
                <td><?php echo $form->label("User.birth_date", 'Birth date') ?></td>
                <td><span><?php echo $this->data['User']['birth_date'] ?></span></td>
            </tr>
        </tbody>
    </table>
</fieldset>
<div id="userHistory">
    <?php echo $this->requestAction("/users/history_display/{$this->data['User']['id']}", array('return')); ?>
</div>
<?php //debug($this->data); ?>
